package com.longyu.worker.bootup;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.*;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@ComponentScan
@EnableAutoConfiguration
@SpringBootApplication
@ImportResource({"classpath*:/spring/spring*.xml"})
@EnableSwagger2
public class SpringLongyuWorkerApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext cac = SpringApplication.run(SpringLongyuWorkerApplication.class, args);
		cac.registerShutdownHook();
	}

}
